package a.f.a;

import a.c.*;
import a.c.d;
import a.f.o;
import a.f.r;
import a.f.rc;
import a.f.vc;

import java.util.HashMap;

class b
  extends r
{
  vc g;
  private boolean h = false;
  
  boolean b()
  {
    return this.h;
  }
  
  void a(boolean paramBoolean)
  {
    this.h = paramBoolean;
  }
  
  public b(vc paramvc)
  {
    this.g = paramvc;
  }
  
  public boolean canLayout(o paramo)
  {
    return true;
  }
  
  public void doLayout(o paramo)
  {
    int i = e.M;
    boolean bool = e.L;
    n localn = paramo.C();
    ab localab = new ab();
    k localk = paramo.c(c.C);
    Object localObject4;
    if (localk != null)
    {
      localObject1 = new HashMap();
      localObject2 = paramo.v();
      label178:
      do
      {
        if (!((w)localObject2).e()) {
          break;
        }
        localObject3 = ((w)localObject2).d();
        localObject4 = localk.get(localObject3);
        if (localObject4 != null)
        {
          if (i == 0) {
            if (((HashMap)localObject1).containsKey(localObject4))
            {
              a.c.e locale = (a.c.e)((HashMap)localObject1).get(localObject4);
              if (i != 0) {
                continue;
              }
              if (((a.c.e)localObject3).c(locale) != null) {
                break label178;
              }
              d locald = paramo.a((a.c.e)localObject3, locale);
              localn.a(locald, true);
              localab.add(locald);
              if (i != 0) {
                continue;
              }
              if (!bool) {
                break label178;
              }
            }
          }
          ((HashMap)localObject1).put(localObject4, localObject3);
        }
        ((w)localObject2).f();
      } while (!bool);
    }
    Object localObject1 = a();
    Object localObject2 = new r()
    {
      private final n val$groupAugmentationEdges;
      private final rc val$previousCore;
      
      public boolean canLayout(o paramAnonymouso)
      {
        return true;
      }
      
      public void doLayout(o paramAnonymouso)
      {
        int i = e.M;
        boolean bool = e.L;
        ab localab = new ab();
        m localm;
        d locald;
        if (i == 0)
        {
          if (b.this.h)
          {
            localm = paramAnonymouso.w();
            do
            {
              if (!localm.e()) {
                break;
              }
              locald = localm.a();
              if (bool) {
                break label120;
              }
              if (this.val$groupAugmentationEdges.getBool(locald))
              {
                localab.add(locald);
                paramAnonymouso.f(locald);
              }
              localm.f();
            } while (!bool);
          }
          this.val$previousCore.doLayout(paramAnonymouso);
        }
        if ((i == 0) && (b.this.h))
        {
          label120:
          localm = localab.l();
          do
          {
            if (!localm.e()) {
              break;
            }
            locald = localm.a();
            paramAnonymouso.g(locald);
            localm.f();
          } while (!bool);
        }
      }
    };
    this.g.a((rc)localObject2);
    this.g.doLayout(paramo);
    Object localObject3 = localab.l();
    do
    {
      if (!((m)localObject3).e()) {
        break;
      }
      localObject4 = ((m)localObject3).a();
      paramo.a((d)localObject4);
      ((m)localObject3).f();
      if ((i == 0) && (bool)) {
        return;
      }
    } while (!bool);
    paramo.a(localn);
    if (i == 0) {
      this.g.a((rc)localObject1);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.a.b

 * JD-Core Version:    0.7.0.1

 */